package com.jiankang.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jiankang.dao.AdviceForUserDao;
import com.jiankang.entity.AdviceForUser;
import com.jiankang.service.AdviceForUserService;
import com.jiankang.util.Page;

@Service("AdviceForUserService")
public class AdviceForUserServiceImpl implements AdviceForUserService {
	@Resource
	private AdviceForUserDao adviceForUserDao;

	@Override
	public List<AdviceForUser> questList() {
		// TODO Auto-generated method stub
		return adviceForUserDao.questList();
	}

	@Override
	public int saveAdvice(AdviceForUser adviceForUser) {
		// TODO Auto-generated method stub
		return adviceForUserDao.saveAdvice(adviceForUser);
	}

	@Override
	public int saveAddQuest(AdviceForUser adviceForUser) {
		// TODO Auto-generated method stub

		return adviceForUserDao.saveAddQuest(adviceForUser);
	}

	@Override
	public List<AdviceForUser> quest(int problemId) {
		// TODO Auto-generated method stub 
		return adviceForUserDao.quest(problemId);
	}

	@Override
	public List<AdviceForUser> answer(int problemIdForeign) {
		// TODO Auto-generated method stub
		return adviceForUserDao.answer(problemIdForeign);
	}

	@Override
	public long getAllProductCount() {
		// TODO Auto-generated method stub
		return adviceForUserDao.getAllProductCount();
	}

	@Override
	public List<AdviceForUser> getHealthFile(Page page) {
		// TODO Auto-generated method stub
		return adviceForUserDao.getHealthFile(page);
	}

	@Override
	public List<AdviceForUser> askList() {
		// TODO Auto-generated method stub
		return adviceForUserDao.askList();
	}

}
